<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>固定到版心的右侧</title>
  <style>
    .w {
      width: 800px;
      height: 1000px;
      background-color: pink;
      margin: 0 auto;
    }

    .dj {
      position: fixed;
      top: 100px;
      left: 50%;
      margin-left: 406px;
    }
  </style>
</head>

<body>
  <div class="dj">
    <img src="./images/pvp.png" alt="">
  </div>
  <div class="w"></div>
</body>

</html>